package org.zhu.common.bean.vo;

import java.util.List;

/**
 * Created by zhu yingzhi on 2017/9/18.
 * @author yingzhi zhu
 * 分页基类
 */
public class Page<T> {
    /**
     * 实体集合
     */
    private List<T> list;
    /**
     * 当前页数
     */
    public int currentPage=1;
    /**
     * 每页多少条数
     */
    public int pageSize=10;
    /**
     * 总共页数
     */
    private int totalPage;
    /**
     * 总共
     */
    private int total;

    public Page() {}
    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
